package com.buaa.airticketbookingsystem.Controller;

import com.buaa.airticketbookingsystem.Service.PurchaseRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class DelController {

    @Autowired
    private PurchaseRecordService purchaseRecordService;

    @PostMapping("/del")
    public void delPR(@RequestBody Map<String, String> remap){
        purchaseRecordService.delPR(remap.get("no"));
    }
}
